<h1 align="center">Editar Horario</h1>
<div  class="area">
    <form action="" method="post" accept-charset="utf-8">
        <div class="split">
            
            <div class="split" style="width:30%; padding-left:15px;">
            <label>Id Horario</label>
            </div>
            <div class="split" style="width:70%;">
            <input name="idhorario" type="text" readonly value="<?php echo $hg[0][0]['idhorario']; ?>" size=4 maxlength="7" align="left">
            </div></br></br>
						
                        
            <div class="split" style="width:30%;">
            <label>Id Asignatura</label></div>
            <div class="split" style="width:70%;">
                <select name="idasignatura" size="1">
                <?php
                       foreach($asignaturas as $asig):
                    if($hg[0][0]['idasignatura'] != $asig[0]['idasignatura']){
                    ?>
                <option value="<?php echo $asig[0]['idasignatura'];?>" ><?php echo $asig[0]['nombreasignatura'];?></option>
                <?php }else {?>
                <option value="<?php echo $asig[0]['idasignatura'];?>" selected><?php echo $asig[0]['nombreasignatura'];?></option>
                <?php } endforeach;?>
                </select>
            </div>
            
            <div class="split" style="width:30%;">
            <label>Id Ciclo</label></div>
             <div class="split" style="width:70%;">
                <select name="idciclo" size="1">
                <?php
                       foreach($ciclos as $cic):
                    if($hg[0][0]['idciclo'] != $cic[0]['idciclo']){
                    ?>
                <option value="<?php echo $cic[0]['idciclo'];?>" ><?php echo $cic[0]['idciclo'];?></option>
                <?php }else {?>
                <option value="<?php echo $cic[0]['idciclo'];?>" selected><?php echo $cic[0]['idciclo'];?></option>
                <?php } endforeach;?>
                </select>
            </div>
            
             <div class="split" style="width:30%;">
            <label>A&ntilde;o</label></div>
             <div class="split" style="width:70%;">
                <select name="anio" size="1">
                <?php
                       foreach($anio as $ani):
                    if($hg[0][0]['anio'] != $ani[0]['anio']){
                    ?>
                <option value="<?php echo $ani[0]['anio'];?>" ><?php echo $ani[0]['anio'];?></option>
                <?php }else {?>
                <option value="<?php echo $ani[0]['anio'];?>" selected><?php echo $ani[0]['anio'];?></option>
                <?php } endforeach;?>
                </select>
            </div>
            
            <div class="split" style="width:30%;">
            <label>Tipo Grupo</label></div>
            <div class="split" style="width:70%;">
                <select name="tipogrupo" size="1">
                    <?php if($hg[0][0]['tipogrupo'] == 'GT'){?><option value="GT" selected>GT</option><?php } else {?> <option value="GT">GT</option> <?php }?>
                    <?php if($hg[0][0]['tipogrupo'] == 'GD'){?><option value="GD" selected>GD</option><?php } else {?> <option value="GD">GD</option> <?php }?>
                    <?php if($hg[0][0]['tipogrupo'] == 'GL'){?><option value="GL" selected>GL</option><?php } else {?> <option value="GL">GL</option> <?php }?>
                </select>
            </div>
            </br></br>

            <div class="split" style="width:30%; padding-left:15px;">
			<label>N&uacute;mero Grupo</label>
			</div>
			<div class="split" style="width:70%;">
			<input type="text" name="numerogrupo" maxlength="2" onkeypress="return justNumbers(event)" value="<?php echo $hg[0][0]['numerogrupo']; ?>" size=4 align="left" >
			</div></br></br>
						        
            <div class="split" style="width:30%; padding-left:15px;">
			<label>Horas Grupo</label>
			</div>
			<div class="split" style="width:70%;">
			<input type="horasgrupo" name="horasgrupo" onkeypress="return justNumbers(event)" maxlength="2" value="<?php echo $hg[0][0]['horasgrupo']; ?>" size=4 align="left" >
			</div></br></br>
            
			<div style="display:table;">
                <div style="display:table-row;">
				    <input class="boton" type="submit" name="Modificar" value="Modificar">
				</div>
			</div>
        
        </div>
	</form>
</div>
</br> 